/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Valdez
 */
public class Atomo {
    private boolean esNumero;
    private boolean esNulo;
    private boolean esBoolean;
    //private boolean esParametro;
    private String valor;
    
    private boolean valorBoolean = true;
    private double  valorNumerico = 0;
    
    public Atomo(){
        esNumero = false;
        esNulo = true;
        esBoolean = false;
        valor = "NIL";
    }
    
    public Atomo(double num){
        esNumero = true;
        esNulo = false;
        esBoolean = false;
        valor = ""+num;
        valorNumerico = num;
    }
    
    public Atomo(boolean b){
        esNumero = false;
        esNulo = false;
        esBoolean = true;
        valorBoolean = b;
        if (b)
            valor = "T";
        else
            valor = "NIL";
    }
    
    public boolean esNumero(){
        return this.esNumero;
    }
    
    public boolean esBoolean(){
        return this.esBoolean;
    }
    
    public boolean esNulo(){
        return this.esNulo;
    }
    
    public double getNumero(){
        return this.valorNumerico;
    }
    
    public boolean getBoolean(){
        return this.valorBoolean;
    }
}
